﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="Shipping.aspx.cs" Inherits="Shipping" Title="Beta Books | Shipping Information" %>
<%@ MasterType virtualPath="~/MasterPage.master"%>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <span class="heading">Shipping</span>
    <table class="contentTable">
        <tr>
            <td style="height:22px;width:20px;background-image:url('images/ictl.png');background-position: top;background-repeat:no-repeat"></td>
            <td style="background-image:url('images/bg.png');"></td>
            <td style="height:22px;width:20px;background-image:url('images/ictr.png');background-position: top;background-repeat:no-repeat"></td>
        </tr>
        <tr class="contentbg">
            <td></td>
            <td>
                <h4>Please enter your shipping information in the form below</h4>
                <table>
                  <tr>
                    <td>Name:</td>
                    <td colspan="2"><asp:TextBox ID="txtName" runat="server" Columns="35" /></td>
                    <td>
                      <asp:RequiredFieldValidator ID="nameRequiredFieldValidator" runat="server" 
                        ErrorMessage="Required"
                        ControlToValidate="txtName" 
                        Display="Dynamic"/>
                      <asp:RegularExpressionValidator ID="nameRegExValidator" runat="server" 
                        ErrorMessage="Please only enter letters, numbers, spaces, or periods." 
                        ControlToValidate="txtName"
                        ValidationExpression="\s*[a-zA-Z\s\.]+\s*" 
                        Display="Dynamic" />
                        <asp:RegularExpressionValidator ID="nameRegExFirstLast" runat="server" 
                            Display="Dynamic" 
                            ErrorMessage="Please enter a first and last name, no middle names" 
                            ControlToValidate="txtName"
                            ValidationExpression="\s*[A-Za-z]+\s+[A-Za-z]+\s*" />
                    </td>
                  </tr>
                  <tr>
                    <td>Street Address: </td>
                    <td colspan="2"><asp:TextBox ID="txtStreet1" runat="server" Columns="35"/></td>
                    <td>
                      <asp:RequiredFieldValidator ID="street1RequiredFieldValidator" runat="server" 
                        ErrorMessage="Required"
                        ControlToValidate="txtStreet1" 
                        Display="Dynamic" />
                        <asp:RegularExpressionValidator ID="street1RegExValidator" runat="server" 
                          ErrorMessage="Please enter a street number and name" 
                          ControlToValidate="txtStreet1" 
                          ValidationExpression="^\d+\s+[A-Za-z\s\.]+" 
                          Display="Dynamic" />
                    </td>
                  </tr>
                  <tr>
                    <td></td>
                    <td colspan="2"><asp:TextBox ID="txtStreet2" runat="server" Columns="35" /></td>
                    <td>
                      <asp:RegularExpressionValidator ID="street2RegExValidator" runat="server" 
                        ErrorMessage="Please enter unit type (apt, suite, etc) and number."
                        ControlToValidate="txtStreet2"
                        ValidationExpression="^[a-zA-Z\.]*\s*\d+" 
                        Display="Dynamic" />
                    </td>
                  </tr>
                  <tr>
                    <td>City: </td>
                    <td colspan="2"><asp:TextBox ID="txtCity" runat="server" />
                      <asp:RequiredFieldValidator ID="cityRequiredFieldValidator" runat="server" 
                        ErrorMessage="Required"
                        ControlToValidate="txtCity" 
                        Display="Dynamic"/>
                      <asp:RegularExpressionValidator ID="cityRegExValidator" runat="server" 
                        ErrorMessage="Please enter letters and spaces only." 
                        ControlToValidate="txtCity" 
                        ValidationExpression="^[A-Za-z\s]+" 
                        Display="Dynamic" />
                      </td>
                    <td colspan="2">
                        &nbsp;</td>
                  </tr>
                  <tr>
                    <td>State: </td>
                    <td colspan="2">
                      <asp:DropDownList ID="ddState" runat="server">
                        <asp:ListItem Value="">Choose a state</asp:ListItem>
                        <asp:ListItem Value="AL">Alabama</asp:ListItem>
                        <asp:ListItem Value="AK">Alaska</asp:ListItem>
                        <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                        <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                        <asp:ListItem Value="CA">California</asp:ListItem>
                        <asp:ListItem Value="CO">Colorado</asp:ListItem>
                        <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                        <asp:ListItem Value="DC">District of Columbia</asp:ListItem>
                        <asp:ListItem Value="DE">Delaware</asp:ListItem>
                        <asp:ListItem Value="FL">Florida</asp:ListItem>
                        <asp:ListItem Value="GA">Georgia</asp:ListItem>
                        <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                        <asp:ListItem Value="ID">Idaho</asp:ListItem>
                        <asp:ListItem Value="IL">Illinois</asp:ListItem>
                        <asp:ListItem Value="IN">Indiana</asp:ListItem>
                        <asp:ListItem Value="IA">Iowa</asp:ListItem>
                        <asp:ListItem Value="KS">Kansas</asp:ListItem>
                        <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                        <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                        <asp:ListItem Value="ME">Maine</asp:ListItem>
                        <asp:ListItem Value="MD">Maryland</asp:ListItem>
                        <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                        <asp:ListItem Value="MI">Michigan</asp:ListItem>
                        <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                        <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                        <asp:ListItem Value="MO">Missouri</asp:ListItem>
                        <asp:ListItem Value="MT">Montana</asp:ListItem>
                        <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                        <asp:ListItem Value="NV">Nevada</asp:ListItem>
                        <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                        <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                        <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                        <asp:ListItem Value="NY">New York</asp:ListItem>
                        <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                        <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                        <asp:ListItem Value="OH">Ohio</asp:ListItem>
                        <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                        <asp:ListItem Value="OR">Oregon</asp:ListItem>
                        <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                        <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                        <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                        <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                        <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                        <asp:ListItem Value="TX">Texas</asp:ListItem>
                        <asp:ListItem Value="UT">Utah</asp:ListItem>
                        <asp:ListItem Value="VT">Vermont</asp:ListItem>
                        <asp:ListItem Value="VA">Virginia</asp:ListItem>
                        <asp:ListItem Value="WA">Washington</asp:ListItem>
                        <asp:ListItem Value="WV">West Virginia</asp:ListItem>
                        <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                        <asp:ListItem Value="WY">Wyoming</asp:ListItem>
                      </asp:DropDownList>
                      <asp:RequiredFieldValidator ID="stateRequiredFieldValidator" runat="server" 
                        ErrorMessage="Required" 
                        ControlToValidate="ddState" 
                        Display="Dynamic" />
                      <asp:RegularExpressionValidator ID="stateRegExValidator" runat="server" 
                        ErrorMessage="Please choose a state" 
                        ControlToValidate="ddState" 
                        ValidationExpression="[A-Z]{2}" 
                        Display="Dynamic" />
                    </td>
                    <td colspan="2">
                        &nbsp;</td>
                  </tr>
                  <tr>
                    <td>Zip: </td>
                    <td colspan="2"><asp:TextBox ID="txtZip" runat="server" />
                      <asp:RequiredFieldValidator ID="zipRequiredFieldValidator" runat="server" 
                        ErrorMessage="Required" 
                        ControlToValidate="txtZip" 
                        Display="Dynamic" />
                      <asp:RegularExpressionValidator ID="zipRegExValidator" runat="server" 
                        ErrorMessage="Please enter in the form of #####." 
                        ControlToValidate="txtZip" 
                        ValidationExpression="^\d{5}\s*$" 
                        Display="Dynamic" />
                      </td>
                    <td colspan="2">
                        &nbsp;</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td><asp:Button ID="cmdShipFormSubmit" runat="server" Text="Ok" 
                          onclick="cmdShipFormSubmit_Click" CssClass="button"/>&nbsp;&nbsp;
                        <asp:Button ID="cmdShipFormCancel" runat="server" Text="Cancel" 
                            CausesValidation="False" onclick="cmdShipFormCancel_Click" CssClass="button"/>
                    </td>
                    <td></td>
                  </tr>
                </table> 
            </td>   
            <td></td>
        </tr>
        <tr>
            <td style="height:22px;width:20px;background-image:url('images/icbl.png');background-position: top;background-repeat:no-repeat"></td>
            <td style="background-image:url('images/bg.png');"></td>
            <td style="height:22px;width:20px;background-image:url('images/icbr.png');background-position: top;background-repeat:no-repeat"></td>
        </tr>
    </table>
</asp:Content>

